<div class="header_con">
    <div class="header">
        <div class="welcome fl">欢迎来到天天生鲜!</div>
        <div class="fr">
            <div class="login_info fl">
                欢迎您：<em>张 山</em>
            </div>
            <div class="login_btn fl">
                {% if request.user.is_authenticated %}
                    <a href="/user_logout"
                       style="color: #00bc6f">&nbsp&nbsp用户：{{ request.user.username }}&nbsp&nbsp&nbsp退出</a>
                    <div class="user_link fl">
                        <span>|</span>
                        <a href="/user_center_info">用户中心</a>
                        <span>|</span>
                        <a href="/carts/cart">我的购物车</a>
                        <span>|</span>
                        <a href="/user_center_order">我的订单</a>
                    </div>
                {% else %}
                    <a href="/user_login/">登录</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <a href="/user_register/">注册</a>
                {% endif %}
                <span>|</span>

            </div>

        </div>
    </div>
</div>